package com.hsmw.schedule.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author WD
 * @version 1.0
 * @description: TODO
 * @date 2021/3/2 11:19
 */
@Data
public class DriverRegisterPageVO {

	private String username;
	private LocalDateTime registerTime;
	private Boolean isDriver;


	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public LocalDateTime getRegisterTime() {
		return registerTime;
	}
}
